<div class="form">

    
    <fieldset class="box">
        <legend>DynForm Common Settings</legend>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'adynform-form',
	'enableAjaxValidation'=>false,
)); ?>

	

	<?php echo $form->errorSummary($model); ?>

        <table>
            <tr>
                <td><?php echo $form->labelEx($model,'df_name'); ?></td>
                <td><?php echo $form->textField($model,'df_name',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'df_name'); ?></td>
            </tr>
            <tr>
                <td><?php echo $form->labelEx($model,'df_docName'); ?></td>
                <td><?php echo $form->textField($model,'df_docName',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'df_docName'); ?></td>
            </tr>
            <tr>
                <td><?php echo $form->labelEx($model,'org_id'); ?></td>
                <td><?php
                
                    $this->widget('zii.widgets.jui.CJuiAutoComplete', array(
                       //'model'=>$model,
                       'name'=>'org_id',
                       'value'=>CHtml::encode(Organisation::model()->findByPK($model->org_id)->nachname),
                       'source' => $this->createUrl('Organisation/autocompleteOrganisation'),
                       'options' => array(
                            'minLength'=>'2',
                            'select'=>"js:function(event,ui){
                                $('#".CHtml::activeId($model,'org_id')."').val(ui.item.id);
                            }",
                       ),
                    ));

                    ?>

                <?php echo $form->hiddenField($model,'org_id'); ?>
		<?php echo $form->error($model,'org_id'); ?></td>
            </tr>
            <tr>
                <td><?php echo $form->labelEx($model,'df_action'); ?></td>
                <td><?php echo $form->textField($model,'df_action'); ?>
		<?php echo $form->error($model,'df_action'); ?></td>
            </tr>
            <tr>
                <td><?php echo $form->labelEx($model,'adf_xmltag'); ?></td>
                <td><?php echo $form->textField($model,'adf_xmltag',array('size'=>60,'maxlength'=>60)); ?>
		<?php echo $form->error($model,'adf_xmltag'); ?></td>
            </tr>
        </table>
		

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>
        

<?php $this->endWidget(); ?>
    </fieldset>

    <p class="note">Fields with <span class="required">*</span> are required.</p>
    
</div><!-- form -->